package com.foreknow.dao;

import com.foreknow.mapping.AdminMappingImpl;
import com.foreknow.model.Admin;

import java.sql.SQLException;

public interface AdminDao {


    /**
     *   //登录的方法
     * @param username
     * @param password
     * @return
     */
    public Admin isLogin(String username, String password);

    /**
     * 添加
     * @param admin
     * @return
     */
    public boolean addAdmin(Admin admin) throws SQLException;
}
